package Eyjafjalla.action;

import Eyjafjalla.patch.CloudPatch;
import com.megacrit.cardcrawl.actions.AbstractGameAction;
import com.megacrit.cardcrawl.cards.AbstractCard;

public class UnfullMakeAction extends AbstractGameAction {
    public UnfullMakeAction(AbstractCard card,int amt){
        this.amount = amt;
        actionType = ActionType.CARD_MANIPULATION;
        this.card = card;
    }

    @Override
    public void update() {
        if(this.amount>0&&CloudPatch.cloudGroup.size()<5){
            if(amount>1)
                addToTop(new UnfullMakeAction(card,this.amount-1));
            addToTop(new MakeTempCardInCloudAction(card,1));
        }
        this.isDone = true;
    }

    AbstractCard card;
}
